home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / cisco / tacacsd.shar / xtacacsd / Makefile < prev    next >
Encoding:
Makefile  |  1992-08-07  |  763 b   |  33 lines

  1. # add -DSYSV as appropriate, -DPW_QUOTA if your passwd struct has one
  2. CFLAGS=-g -DDEBUG -DBSD43
  3.  
  4. # may need to -lBSD, -lbsd, or some such
  5. LIBS=-lresolv -lm
  6.  
  7. # include these if necessary
  8. #XOBJS=syslog.o strerror.o
  9.  
  10. all:    xtacacsd tacpasswd changetac
  11.  
  12. xtacacsd: xtacacsd.c inet_ntoa.o $(SYSLOG)
  13.     ${CC} -Iinclude ${CFLAGS} -o $@ xtacacsd.c inet_ntoa.o \
  14.         $(SYSLOG) ${LIBS}
  15.  
  16. inet_ntoa.o: inet_ntoa.c
  17.     ${CC} -Iinclude ${CFLAGS} -c -o $@ inet_ntoa.c
  18.  
  19. syslog.o: syslog.c
  20.     ${CC} -Iinclude ${CFLAGS} -c -o $@ syslog.c
  21.  
  22. strerror.o: strerror.c
  23.     ${CC} ${CFLAGS} -c -o $@ strerror.c
  24.  
  25. tacpasswd: tacpasswd.c
  26.     ${CC} ${CFLAGS} -o $@ tacpasswd.c ${LIBS}
  27.  
  28. changetac: changetac.c
  29.     ${CC} ${CFLAGS} -o $@ changetac.c ${LIBS}
  30.  
  31. clean:
  32.     rm -f xtacacsd tacpasswd changetac a.out core *.o
  33.